package com.example.annotation;

import com.example.constant.MQConstant;
import org.springframework.stereotype.Service;

import java.lang.annotation.*;

@Service
@Target(ElementType.TYPE)
@Retention(RetentionPolicy.RUNTIME)
@Documented
public @interface MQListener {

    //监听名称
    String name();

    //监听类型
    String type() default MQConstant.QUEUE;

    //是否启用消息重发
    boolean repeated() default false;
}
